package com.luoye.lj.platform.dao.mapper;

import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.RoleInfo;
import com.luoye.lj.platform.model.domain.RoleInfoSearch;
import com.luoye.lj.platform.model.domain.RoleSaveInfo;

import java.util.List;

/**
 * Created by wei on 2015/12/1.
 */
public interface IRoleServiceMapper {
    //添加
    int addRole(RoleInfo role);
    //删除
    int delRole(long id);
    //修改
    int modifyRole(RoleSaveInfo role);
    //查询所有
    List<RoleInfo> getAll();
    //条件查询
    List<RoleInfo> search(RoleInfoSearch search);
    //总的条数
    int talCount(RoleInfoSearch search);
    //添加权限关联
    int addRra(RoleSaveInfo rolesave);
    //删除关联权限
    int delRra(long rid);
    //根据id查询关联的权限ID
    List<Long> getAid(long id);
    AuthInfo getAuth(long ids);
    int recover(long id);
    int getDelmark(long id);
    RoleInfo getRoleById(long id);
    RoleInfo getRoleByname(String rolename);
}
